const Path = require("path")


const baseConfig = {
    entry: "./bin/Exports.js",
    output: {
        filename: "dream_rpc_browser_host.browser.production.js",
        path: Path.join(__dirname, "bin"),
        library: "dream_rpc_browser_host",
        libraryTarget: "var"
    },
    mode: "production",
    externals: [
        "dream_rpc"
    ]
}


module.exports = [
    {
        ...baseConfig
    },
    {
        ...baseConfig,
        mode: "development",
        output: {
            ...baseConfig.output,
            filename: "dream_rpc_browser_host.browser.development.js"
        }
    }
]